package com.woniuxy.oa.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.oa.entity.Department;
import com.woniuxy.oa.mapper.DepartmentMapper;
import com.woniuxy.oa.service.DepartmentService;
@Service("departmentService")
public class DepartmentServiceImpl implements DepartmentService{
	@Autowired
	DepartmentMapper departmentMapper;

	@Override
	public List<Department> getAllDepartments() {
		return departmentMapper.selectAllDepartments();
	}

}
